Refactors sign in page