Refactored Login functionality and moved to Login.java (out of JDBFunctions.java)