Adding ability to redirect if loggin is a success