Re-solidify login functionality