Update main.php

fixed login redirect url