Adding a better homepage login function