Additions to Authentication.java