Added Queries to Login Button Handlers