Site re-directs to login page even after a successfull login
This behavior is normal

The default front page of Drupal is this one. It displays the latest published and promoted nodes. If you want to put another node as a front page you can do it in configuration>site information

Also drupal assumes that your site is in the top level directory (e.g. yourserver:port/)
If you want to change it to yourserver:port/custompath/ then set the $base_url to custompath in your settings.php file